package com.zlj.accountant.core;

import com.zlj.accountant.core.ann.Publish;

public abstract class AbstractHandler{
	
	private int space;
	
	public boolean isPublic(){
		return isSpace(Publish.Public);
	}
	
	public int getSpace(){
		return space;
	}
	
	public boolean isSpace(int space){
		return (this.space & space) == space;
	}
	
	public void setSpace(int space){
		this.space = space;
	}
	
	public AbstractHandler(){}
}
